package org.gr.ias.common.entity;

import java.io.Serializable;

public class CapitalInvestmentExtIndustry implements Serializable {
    /** 主键*/
    private String id;

    /** 对应资金投资信息ID*/
    private String capitalInvestmentId;

    /** 行业代码*/
    private String industryCode;

    /** 版本号*/
    private Integer version;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getCapitalInvestmentId() {
        return capitalInvestmentId;
    }

    public void setCapitalInvestmentId(String capitalInvestmentId) {
        this.capitalInvestmentId = capitalInvestmentId == null ? null : capitalInvestmentId.trim();
    }

    public String getIndustryCode() {
        return industryCode;
    }

    public void setIndustryCode(String industryCode) {
        this.industryCode = industryCode == null ? null : industryCode.trim();
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CapitalInvestmentExtIndustry other = (CapitalInvestmentExtIndustry) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCapitalInvestmentId() == null ? other.getCapitalInvestmentId() == null : this.getCapitalInvestmentId().equals(other.getCapitalInvestmentId()))
            && (this.getIndustryCode() == null ? other.getIndustryCode() == null : this.getIndustryCode().equals(other.getIndustryCode()))
            && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCapitalInvestmentId() == null) ? 0 : getCapitalInvestmentId().hashCode());
        result = prime * result + ((getIndustryCode() == null) ? 0 : getIndustryCode().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", capitalInvestmentId=").append(capitalInvestmentId);
        sb.append(", industryCode=").append(industryCode);
        sb.append(", version=").append(version);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}